package com.itheima.demo01;

import java.io.File;

public class FileDemo01 {
    public static void main(String[] args) {
        //父级路径
        String parent = "D:\\Qt\\Qt5.12.0";
        //子级路径
        String child = "InstallationLog.txt";
        //File对象
        File file = new File(parent, child);
        //是否文件
        System.out.println(file.isFile());
        //是否是文件夹
        System.out.println(file.isDirectory());
        //文件是否存在
        System.out.println(file.exists());
    }
}
